<%@page pageEncoding="Cp1252" contentType="text/html; charset=Cp1252"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<style>
body {
	background-color: rgb(75, 192, 198);
}
</style>
<div id="corps">
	<h1 align="center">Gestion des questionnaires</h1>

	<p>
		Il ya
		<s:property value="liste.size()" />
		questionnaires.
	</p>

	<button onclick="self.location.href='creer_questionnaire'">Nouveau</button>
	<div>


		<TABLE BORDER>
			<TR>
				<TD BGCOLOR="yellow" align="center">Nom</TD>
				<TD BGCOLOR="yellow" align="center">Description</TD>

				<TD BGCOLOR="yellow">Supprimer/Modifier</TD>
			</TR>


			<s:iterator value="liste">
				<TR>
					<TD BGCOLOR="#C0C0C0"><s:property value="nom" /></TD>
					<TD><s:property value="description" /></TD>

					<s:form theme="simple" namespace="/admin"
						action="editer_questionnaire">
						<td><s:submit value="Editer"></s:submit></td>
						<s:hidden name="id" value="%{id}" />
					</s:form>
				</TR>
			</s:iterator>


		</TABLE>

	</div>
	<s:form>
		<s:submit type="button" value="Retour" action="accueil_admin" />
	</s:form>
</div>

